package com.design03_behavioral.pattern13_observer.example03;

import com.design03_behavioral.pattern13_observer.example02.LotteryResult;

/**
 * @ClassName Test
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/6 22:51
 */
public class Test {

    public static void main(String[] args) {

        LotteryService lotteryService = new LotteryServiceImpl();
        LotteryResult lotteryResult = lotteryService.lotteryAndMsg("12342342342");
        System.out.println(lotteryResult);
        //发送短信通知用户ID为: 12342342342,您的摇号结果如下: "恭喜ID为: " + uId + " 的用户,在本次摇号中中qian !!
        //记录用户摇号结果(MQ), 用户ID:12342342342,摇号结果:"恭喜ID为: " + uId + " 的用户,在本次摇号中中qian !!
        //LotteryResult{uId='12342342342', msg='"恭喜ID为: " + uId + " 的用户,在本次摇号中中qian !!', dataTime=Wed Sep 06 22:55:52 CST 2023}



    }
}
